<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add User</title>
<link rel="stylesheet" type="text/css" href="common.css">
<style>
.form-invalid {
background-color:#FFFFFF;
/*background-image:url(../images/invalid_line.gif);*/
border-color:#CC3300;
}
</style>
</head>
<body>
<script>
$(document).ready(function(){
	/*
	$("#passwordcfg").blur( function(){ 		 
		var form = document.getElementById("updateMemberForm");
		if ( form.password.value != form.passwordcfg.value){	
			$("#passwordcfgLbl").attr("innerText","两次输入密码不正确");	
			$("#passwordcfg").addClass("form-invalid");	
		}		
	} );
	$("#passwordcfg").click( function(){ 		 
		var form = document.getElementById("addUserForm");
		if ( form.password.value != form.passwordcfg.value){	
			$("#passwordcfgLbl").attr("innerText","两次输入密码不正确");	
			$("#passwordcfg").removeClass("form-invalid");	
		}		
	} );	*/
}
);
	function checkAndSubmit(){
		var form = document.getElementById("updateMemberForm");
		form.submit();
	}
</script>  
<div align="center">编辑会员</div>
<br/>
<form method="post" action="updateMember.action" id="updateMemberForm">

<table width="80%" border="0" cellpadding="3" cellspacing="1"  bgcolor="#FFFFFF" align="center">
	<tr>
		<td class="tdbgcolor1" >会员名称:</td>
		<td class="tdbgcolor1" ><input type="text" name="name" id="name" size="50"  value="<s:property value='memberBean.name'/>"/>(例如李生)</td>
	</tr>
	<tr>
		<td class="tdbgcolor2" >会员卡号:</td>
		<td class="tdbgcolor2" ><input type="text" name="cardId" id="cardId" size="50" value="<s:property value='memberBean.cardId'/>"/></td>
	</tr>
	<tr>
		<td class="tdbgcolor1" >密码:</td>
		<td class="tdbgcolor1"><input type="text" name="password" id="password"/></td>
	</tr>
	<!-- 
	<tr>
	<td class="tdbgcolor1" >确认密码:</td>
		<td class="tdbgcolor1"><input type="password" name="passwordcfg" id="passwordcfg" /><label id="passwordcfgLbl" name="passwordcfgLbl"></label></td>
	</tr>	
	 -->
	 <tr>
	 	<td class="tdbgcolor2" >积分</td>
	 	<td class="tdbgcolor2" ><input type="text" name="points" id="points"  value="<s:property value='memberBean.points'/>"/></td>
	 	
	 </tr>
	<tr>
		<td class="tdbgcolor1" >类别:</td>
		<td class="tdbgcolor1" >
			<select name="level" id="level">
				<option value="1" <s:if test='memberBean.level==1'>selected</s:if>>积分会员</option>
				<option value="2" <s:if test='memberBean.level==2'>selected</s:if>>VIP会员</option>
				<option value="0" <s:if test='memberBean.level==0'>selected</s:if>>注册会员</option>
			</select>
		</td>
	</tr>
	<tr>

		<td colspan="2" class="tdbgcolor2">
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" />&nbsp;
			<input type="hidden" name="status" value="1"/>
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
			</td>
</table>
</form>
</body>
</html>
